package com.ruoyi.service.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.service.mapper.ServiceDetailsMerchantMapper;
import com.ruoyi.service.domain.ServiceDetailsMerchant;
import com.ruoyi.service.service.IServiceDetailsMerchantService;

/**
 * 服务详情和商户中间Service业务层处理
 * 
 * @author wsc
 * @date 2025-05-12
 */
@Service
public class ServiceDetailsMerchantServiceImpl implements IServiceDetailsMerchantService 
{
    @Autowired
    private ServiceDetailsMerchantMapper serviceDetailsMerchantMapper;

    /**
     * 查询服务详情和商户中间
     * 
     * @param id 服务详情和商户中间主键
     * @return 服务详情和商户中间
     */
    @Override
    public ServiceDetailsMerchant selectServiceDetailsMerchantById(Long id)
    {
        return serviceDetailsMerchantMapper.selectServiceDetailsMerchantById(id);
    }

    /**
     * 查询服务详情和商户中间列表
     * 
     * @param serviceDetailsMerchant 服务详情和商户中间
     * @return 服务详情和商户中间
     */
    @Override
    public List<ServiceDetailsMerchant> selectServiceDetailsMerchantList(ServiceDetailsMerchant serviceDetailsMerchant)
    {
        return serviceDetailsMerchantMapper.selectServiceDetailsMerchantList(serviceDetailsMerchant);
    }

    /**
     * 新增服务详情和商户中间
     * 
     * @param serviceDetailsMerchant 服务详情和商户中间
     * @return 结果
     */
    @Override
    public int insertServiceDetailsMerchant(ServiceDetailsMerchant serviceDetailsMerchant)
    {
        return serviceDetailsMerchantMapper.insertServiceDetailsMerchant(serviceDetailsMerchant);
    }

    /**
     * 修改服务详情和商户中间
     * 
     * @param serviceDetailsMerchant 服务详情和商户中间
     * @return 结果
     */
    @Override
    public int updateServiceDetailsMerchant(ServiceDetailsMerchant serviceDetailsMerchant)
    {
        return serviceDetailsMerchantMapper.updateServiceDetailsMerchant(serviceDetailsMerchant);
    }

    /**
     * 批量删除服务详情和商户中间
     * 
     * @param ids 需要删除的服务详情和商户中间主键
     * @return 结果
     */
    @Override
    public int deleteServiceDetailsMerchantByIds(Long[] ids)
    {
        return serviceDetailsMerchantMapper.deleteServiceDetailsMerchantByIds(ids);
    }

    /**
     * 删除服务详情和商户中间信息
     * 
     * @param id 服务详情和商户中间主键
     * @return 结果
     */
    @Override
    public int deleteServiceDetailsMerchantById(Long id)
    {
        return serviceDetailsMerchantMapper.deleteServiceDetailsMerchantById(id);
    }
}
